<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="view_param_bank_statement_reconcile_report" model="ir.ui.view">
			<field name="name">view.param.bank.statement.reconcile.report</field>
			<field name="model">param.bank.statement.reconcile.report</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Bank Statement Reconcile Report">
					<group string="">
						<field name="target_move"/> 
                 	</group>
					<notebook colspan="4">
						<page string="Journal">	
							<group>
								<field name="journal_selection" on_change="onchange_journal_selection(journal_selection)"/>
								<field name="journal_default_from" domain="[('type','=','bank')]" attrs="{'invisible': [('journal_selection','!=','def')], 'required': [('journal_selection','=','def')]}"
									options='{"quick_create": false}'/>
								<field name="journal_default_to" domain="[('type','=','bank')]" attrs="{'invisible': [('journal_selection','!=','def')], 'required': [('journal_selection','=','def')]}"
									options='{"quick_create": false}'/>
								<field name="journal_input_from"
									attrs="{'invisible': [('journal_selection','!=','input')], 'required': [('journal_selection','=','input')]}"/>
								<field name="journal_input_to"
									attrs="{'invisible': [('journal_selection','!=','input')], 'required': [('journal_selection','=','input')]}"/>
							</group>
							<field name="journal_name_ids" domain="[('type','=','bank')]"
								attrs="{'invisible': [('journal_selection','!=','selection')], 'required': [('journal_selection','=','selection')]}" nolabel="1">
								<tree>
									<field name="name" string="Journal Name"/>
								</tree>
							</field>
						</page>
						<page string="Account">
							<group>
								<field name="account_selection" on_change="onchange_account_selection(account_selection)"/>
								<field name="account_default_from" domain="[('bank_account','=',True)]" attrs="{'invisible': [('account_selection','!=','def')], 'required': [('account_selection','=','def')]}"
									options='{"quick_create": false}'/>
								<field name="account_default_to" domain="[('bank_account','=',True)]" attrs="{'invisible': [('account_selection','!=','def')], 'required': [('account_selection','=','def')]}"
									options='{"quick_create": false}'/>
								<field name="account_input_from"
									attrs="{'invisible': [('account_selection','!=','input')], 'required': [('account_selection','=','input')]}"/>
								<field name="account_input_to"
									attrs="{'invisible': [('account_selection','!=','input')], 'required': [('account_selection','=','input')]}"/>
							</group>
							<field name="account_name_ids" domain="[('bank_account','=',True)]"
								attrs="{'invisible': [('account_selection','!=','selection')], 'required': [('account_selection','=','selection')]}" nolabel="1">
								<tree>
									<field name="name" string="Account Name"/>
								</tree>
							</field>
						</page>
						<page string="Currency">
							<group>
								<field name="currency_selection" on_change="onchange_currency_selection(currency_selection)"/>
								<field name="currency_default_from" attrs="{'invisible': [('currency_selection','!=','def')], 'required': [('currency_selection','=','def')]}"
									options='{"quick_create": false}'/>
								<field name="currency_default_to" attrs="{'invisible': [('currency_selection','!=','def')], 'required': [('currency_selection','=','def')]}"
									options='{"quick_create": false}'/>
								<field name="currency_input_from"
									attrs="{'invisible': [('currency_selection','!=','input')], 'required': [('currency_selection','=','input')]}"/>
								<field name="currency_input_to"
									attrs="{'invisible': [('currency_selection','!=','input')], 'required': [('currency_selection','=','input')]}"/>
							</group>
							<field name="currency_name_ids" 
								attrs="{'invisible': [('currency_selection','!=','selection')], 'required': [('currency_selection','=','selection')]}" nolabel="1">
								<tree>
									<field name="name" string="Currency Name"/>
								</tree>
							</field>	
						</page>
						<page string="Sort By">
							<field name="sortby_ids">
		                        <tree string="Sort by" editable="bottom">
		                            <field name="seq" />
		                            <field name="sort_by"/>
		                        </tree>
                   			</field>
						</page>
					</notebook>
					<footer>
	                    <button name="create_vat" string="Print as PDF" type="object" default_focus="1" class="oe_highlight"/>
	                    or
	                    <button name="print_report" string="Print as XLS" type="object" class="oe_highlight" context="{'xls_output':1}"/>
		            	or
	                    <button string="Cancel" class="oe_link" special="cancel"/>
					</footer>
				</form>
			</field>
		</record>
		
		<record id="action_view_param_bank_statement_reconcile_report" model="ir.actions.act_window">
			<field name="name">Bank Statement Reconcile Report</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">param.bank.statement.reconcile.report</field>
			<field name="view_type">form</field>
			<field name="view_mode">form</field>
			<field name="target">new</field>
			<field name="help">This menu for print bank statement reconcile report.</field>
		</record>

		<menuitem name="Bank Statement Reconcile Report" parent="applico_v8.menu_general_report"
			action="action_view_param_bank_statement_reconcile_report" id="menu_bank_statement_reconcile_report" sequence="41"/>

	</data>
</openerp>
